Skip to content

Conversation

sakthivelmanii
Copy link
Contributor

@sakthivelmanii sakthivelmanii commented Oct 6, 2025

  1. Using @ListArrayType type for a character varying[] is actually converted to Postgres text type Ref.
  2. Similarly typeName can be from Postgres dialect equivalent.

@sakthivelmanii sakthivelmanii requested review from a team as code owners October 6, 2025 18:47
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Oct 6, 2025
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Oct 9, 2025
@sakthivelmanii sakthivelmanii changed the title chore: Support text/varchar type in JDBC chore: Support PG Dialect in Hibernate Oct 9, 2025
@sakthivelmanii sakthivelmanii marked this pull request as draft October 9, 2025 11:48
@sakthivelmanii sakthivelmanii force-pushed the support_pg_dialect branch 3 times, most recently from 02d584b to a5a3446 Compare October 12, 2025 18:55
@sakthivelmanii sakthivelmanii marked this pull request as ready for review October 12, 2025 18:56
* @return true if type name matches current type name or matches with one of postgres aliases
* or if it matches equivalent postgres type.
*/
public boolean matches(String typeName) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be public?


public abstract Type getSpannerType();

public Set<String> getAliases() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this to getPostgreSQLAliases()? The matches(..) method below confused me at first, and that was partly because it seemed like this could be any type of alias for the type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants